<div id="seotoaster" class="cpanel">
	<div id="showhide">{%Show/Hide panel%}</div>
    <div id="admincpanel">
		<div id="cpanellogowrap"><div id="cpanelimg"></div></div>
		<ul id="menu2" class="menu expandfirst">
			<!-- <ul id="menu2" class="menu expandfirst"> -->
			<?php if(!isset($this->newsData)):?>
				<?php if(!isset($this->quoteEdit)): ?>
					<li>
						<a href="javascript:;"><span>{%PAGES%}</span></a>
						<ul>
							<li class="cpanelsubtitle">{%This page%}</li>
							<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/editpage/pageId/<?php echo $this->pageData['id']; ?>?TB_iframe=true&height=580&width=860','');" title="{%Edit page properties%}">{%Edit page properties%}</a></li>
								<?php if($this->pageData['url']!='index' && $this->pageData['url'] != RCMS_Object_QuickConfig_QuickConfig::$draftCategoryUrl) { ?>
							<li><a onclick="if(!confirm('Do you really want to delete this page?')){return false;};" href="<?php echo $this->websiteUrl; ?>sys/backend_page/deletepage/pageId/<?php echo $this->pageData['id']; ?>" title="{%Delete this page%}">{%Delete this page%}</a></li>
							  <?php } ?>
							<li class="cpanelsubtitle">{%Other pages%}</li>
							<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/addpage/?TB_iframe=true&height=580&width=860','');" title="{%Create a page%}">{%Create a page%}</a></li>
							<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/listall/?TB_iframe=true&height=580&width=860','');" title="{%Organize pages%}">{%Organize pages%}</a></li>
							<li><a id="edit404" href="javascript:;" title="{%Edit 404 page%}">{%Edit 404 page%}</a></li>
							<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/draftlist/?TB_iframe=true&height=500&width=500','');" title="{%Draft%}">{%Draft pages%}&nbsp;(<?php echo $this->cntDraftPages; ?>)</a></li>
						</ul>
					</li>
				<?php endif; ?>
				<li>
					<a href="javascript:;"><span>{%MEDIA%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_things/uploadthings/?TB_iframe=true&height=580&width=570','');" title="{%Upload things%}">{%Upload things%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_things/removethings/?TB_iframe=true&height=600&width=590','');" title="{%Remove things%}">{%Remove things%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_apiimages/login/?TB_iframe=true&height=500&width=620','');" title="{%Import images from your online galleries%}">{%Import images%}</a></li>
					</ul>
				</li>
				<?php if(!isset($this->quoteEdit)): ?>
					<li>
						<a href="javascript:;"><span>{%SEO%}</span></a>
						<ul>
							<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_robots/editrobots/?TB_iframe=true&height=450&width=570','');" title="{%Edit 'robots.txt'%}">{%Edit 'robots.txt'%}</a></li>
							<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_redirect/manageredirect/?TB_iframe=true&height=580&width=830','');" title="{%Add/Edit 301%}" >{%Add/Edit 301%}</a></li>
                            <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_promote/promote/?TB_iframe=true&height=400&width=580','');" title="{%Site promotion%}">{%Site promotion%}</a></li>
							<li class="cpanelsubtitle">{%Link strategy%}</li>
							<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_deeplink/managedeeplinks/?TB_iframe=true&height=510&width=790','');" title="{%Deeplinks%}">{%Deeplinks%}</a></li>
							<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_prsculpting/index/?TB_iframe=true&height=590&width=590','');" title="{%Manage page rank sculpting%}">{%Sculpting%}</a></li>
						</ul>
					</li>
				<?php endif; ?>
               <li>
                    <a href="javascript:;"><span>{%SHOPPING%}</span></a>
                    <ul>
                        <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_shopping/product/?TB_iframe=true&height=525&width=845','');" title="{%Add/Edit product%}">{%Add/Edit product%}</a></li>
                        <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_shopping/config/?TB_iframe=true&height=585&width=845','');" title="{%Payment config%}">{%Payment config%}</a></li>
                        <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_shipping/config/?TB_iframe=true&height=600&width=900','');" title="{%Shipping configuration%}">{%Shipping configuration%}</a></li>
                        <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_shopping/taxes/?TB_iframe=true&height=585&width=845','');" title="{%Tax configuration%}">{%Tax configuration%}</a></li>
                        <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_shopping/templates/?TB_iframe=true&height=550&width=800','');" title="{%Templates%}">{%Templates%}</a></li>
                        <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_quote/index/?TB_iframe=true&height=700&width=750','');">{%Quotes%}&nbsp;<p style="display:inline;margin:0px;padding:0px;color:red;"><?php echo ($this->newQuotesCount > 0) ? '(' . $this->newQuotesCount . '{%new%})' : ''; ?></p></a></li>
                    </ul>
                </li>
			<?php endif; ?>
			<?php if(!isset($this->quoteEdit)): ?>
				<li>
					<a href="javascript:;"><span>{%LAYOUT%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/add/?TB_iframe=true&height=540&width=730','');" title="{%Add template%}">{%Add template%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/edit/id/<?php echo isset($this->pageData['templateId']) ? $this->pageData['templateId'] : $this->newsData['templateId']; ?>/?TB_iframe=true&height=540&width=750','');" title="{%Edit this template%}">{%Edit this template%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_css/editcss/pageId/<?php echo $this->pageData['id']; ?>/?TB_iframe=true&height=590&width=570','');" title="{%Edit CSS%}">{%Edit CSS%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_theme/index/?TB_iframe=true&height=660&width=600','');" title="{%Themes%}">{%Themes%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/listvars/?TB_iframe=true&height=590&width=570','');" title="{%Widgets & Tokens%}">{%Widgets & Tokens%}</a></li>
					</ul>
				</li>
			<?php endif; ?>
			<?php if(!isset($this->newsData)):?>
				<li>
					<a href="javascript:;"><span>{%OTHER%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_config/manageconfig/?TB_iframe=true&height=575&width=570','');" title="{%Manage config%}">{%Manage config%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_user/index/?TB_iframe=true&height=500&width=780','');" title="{%Manage users%}">{%Manage users%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_plugin/index/?TB_iframe=true&height=660&width=600','');" title="{%Plugins%}">{%Plugins%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_importer/index/?TB_iframe=true&height=250&width=600','');" title="{%Import pages%}">{%Import pages%}</a></li>
					</ul>
				</li>
			<?php endif; ?>
			<li>
				<a href="javascript:;"><span>{%SERVICES%}</span></a>
				 <?php echo $this->servicesContent; ?>
			</li>
			<?php if(isset($this->additionalMenu) && !empty($this->additionalMenu)): ?>
				<?php foreach ($this->additionalMenu as $pluginName => $pluginAdditionalMenu): ?>
					<li>
						<a href="javascript:;"><span><?php echo strtoupper($pluginAdditionalMenu['title']); ?></span></a>
						<?php if(isset($pluginAdditionalMenu['items'])): ?>
							<ul>
								<?php foreach ($pluginAdditionalMenu['items'] as $menuItem): ?>
									<li><?php echo $menuItem; ?></li>
								<?php endforeach; ?>
							</ul>
						<?php endif; ?>
					</li>
				<?php endforeach; ?>
			<?php endif;?>
            <li>
				<a href="<?php echo $this->websiteUrl; ?>sys/login/logout" title="{%LOGOUT%}"><span>{%LOGOUT%}</span></a>
			</li>
		</ul>
		<?php echo '<div id="seotoasterversion">'.addslashes(htmlspecialchars(file_get_contents("version.txt"))).'</div>'; ?>
	</div>
</div>
			